<script>
	$(function(){
		EBCMS.MYFUN.renderUploader('#{$field.unique}_pick',function(file,res){
			if (res.code) {
				$('#{$field.unique}').val(res.data.pathname);
			}else{
				EBCMS.MSG.alert(res.msg);
			};
		},'{$field.config.extensions|default=""}','{$field.config.path|default=""}');
	});
</script>
<table class="table" style="margin-bottom: 0px;">
	<tr>
		<td style="padding: 0px !important;">
			<input id="{$field.unique}" class="form-control" name="{$field.field}" value="{$field.value}" placeholder="{$field.config.prompt|default=''}" {eq name='field.config.disabled' value='1'} disabled{/eq} {eq name='field.config.readonly' value='1'} readonly{/eq}/>
		</td>
		<td style="width: 100px;padding: 0px 0px 0px 10px !important;">
			<div id="{$field.unique}_pick">上传</div>
		</td>
	</tr>
</table>